class PbsException(Exception):
    def __init__(self, message):
        self.message = message

    def __repr__(self):
        return "%s : %s" % (self.__class__.__name__, self.message,)

    def __str__(self):
        return self.__repr__()

class GuiError(PbsException):
    pass

class InitializationError(PbsException):
    pass

class DatabaseBrokenError(PbsException):
    pass

class CollectionError(PbsException):
    pass

class SettingsError(PbsException):
    pass

class DbError(PbsException):
    pass

class LocaleError(PbsException):
    pass

class BookFormatError(PbsException):
    pass

class HtmlTemplateError(PbsException):
    pass

class BrowserError(PbsException):
    pass

class PluginNotFoundError(PbsException):
    pass


